import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import company from '@/components/company'
import companySystem from '@/components/company-system'
import companyHonor from '@/components/company-honor'
import companyCulture from '@/components/company-culture'
import products from '@/components/products'
import productDetails from '@/components/productDetails'
import cases from '@/components/cases'
import caseDetails from '@/components/caseDetails'
import knowledge from '@/components/knowledge'
import knowledgeDetails from '@/components/knowledgeDetails'
import contact from '@/components/contact'
Vue.use(Router)

const router = new Router({
  // linkExactActiveClass: 'active-item',
  // linkExactActiveClass: 'active-item',
  mode: 'history',
  routes: [{
    path: '/',
    component: index
  }, {
    path: '/company',
    component: company
  }, {
    path: '/company-system',
    component: companySystem,
  }, {
    path: '/company-honor',
    component: companyHonor,
  }, {
    path: '/company-culture',
    component: companyCulture,
  }, {
    path: '/products',
    component: products
  }, {
    path: '/productDetails/:pro_id',
    component: productDetails
  }, {
    path: '/cases',
    component: cases
  }, {
    path: '/caseDetails/:case_id',
    component: caseDetails
  }, {
    path: '/knowledge',
    component: knowledge
  }, {
    path: '/knowledgeDetails/:knowledge_id',
    component: knowledgeDetails
  }, {
    path: '/contact',
    component: contact
  }]
})


export default router
